
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>gitee远程仓库搭建 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="客户端与服务端的搭建.html" />
    
    
    <link rel="prev" href="../阶段二笔记/github使用.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">笔记</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                <a href="../阶段一笔记/1.操作系统——特殊的软件.html">
            
                    
                    1.操作系统——特殊的软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../阶段一笔记/2.命令.html">
            
                <a href="../阶段一笔记/2.命令.html">
            
                    
                    2.命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                <a href="../阶段一笔记/3.SSH客户端的简单使用.html">
            
                    
                    3.SSH客户端的简单使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../阶段一笔记/4.用户权限相关命令.html">
            
                <a href="../阶段一笔记/4.用户权限相关命令.html">
            
                    
                    4.用户权限相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../阶段一笔记/5.系统信息相关命令.html">
            
                <a href="../阶段一笔记/5.系统信息相关命令.html">
            
                    
                    5.系统信息相关命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../阶段一笔记/6.vi命令.html">
            
                <a href="../阶段一笔记/6.vi命令.html">
            
                    
                    6.vi命令
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">软件安装及其使用</li>
        
        
    

    
        
        <li class="header">pycharm</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../阶段二笔记/pycharm安装及配置.html">
            
                <a href="../阶段二笔记/pycharm安装及配置.html">
            
                    
                    pycharm安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../阶段二笔记/pycharm使用.html">
            
                <a href="../阶段二笔记/pycharm使用.html">
            
                    
                    pycharm使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../阶段二笔记/pycharm激活问题.html">
            
                <a href="../阶段二笔记/pycharm激活问题.html">
            
                    
                    pycharm激活问题
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">电子书搭建</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../阶段二笔记/gitbook安装.html">
            
                <a href="../阶段二笔记/gitbook安装.html">
            
                    
                    gitbook安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" >
            
                <span>
            
                    
                    git
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="../阶段二笔记/git简要.html">
            
                <a href="../阶段二笔记/git简要.html">
            
                    
                    git简要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="../阶段二笔记/git安装及使用.html">
            
                <a href="../阶段二笔记/git安装及使用.html">
            
                    
                    git安装及使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="../阶段二笔记/git分支管理.html">
            
                <a href="../阶段二笔记/git分支管理.html">
            
                    
                    git分支管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../阶段二笔记/github使用.html">
            
                <a href="../阶段二笔记/github使用.html">
            
                    
                    github使用
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="4.4" data-path="gitee远程仓库搭建.html">
            
                <a href="gitee远程仓库搭建.html">
            
                    
                    gitee远程仓库搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="客户端与服务端的搭建.html">
            
                <a href="客户端与服务端的搭建.html">
            
                    
                    客户端与服务端的搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" >
            
                <span>
            
                    
                    问题
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.6.1" data-path="gitbook build没有summary.html">
            
                <a href="gitbook build没有summary.html">
            
                    
                    gitbook build没有summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6.2" data-path="../问题/typora结合picgo实现上传图片到gitee.html">
            
                <a href="../问题/typora结合picgo实现上传图片到gitee.html">
            
                    
                    typora结合picgo实现上传图片到gitee
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">软件工具</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../阶段二笔记/anaconda下载与使用.html">
            
                <a href="../阶段二笔记/anaconda下载与使用.html">
            
                    
                    anaconda下载与配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../阶段二笔记/anaconda的使用.html">
            
                <a href="../阶段二笔记/anaconda的使用.html">
            
                    
                    anaconda的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../阶段二笔记/python3.6.4下载与安装.html">
            
                <a href="../阶段二笔记/python3.6.4下载与安装.html">
            
                    
                    python3.6.4下载与安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../阶段二笔记/typora安装及配置.html">
            
                <a href="../阶段二笔记/typora安装及配置.html">
            
                    
                    typora安装及配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="../阶段二笔记/ubuntu  tool安装.html">
            
                <a href="../阶段二笔记/ubuntu  tool安装.html">
            
                    
                    ubuntu  tool安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="../阶段二笔记/Jetbrains系列产品重置试用方法.html">
            
                <a href="../阶段二笔记/Jetbrains系列产品重置试用方法.html">
            
                    
                    Jetbrains系列产品重置试用方法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">python学习</li>
        
        
    

    
        
        <li class="header">面对过程</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../python面对过程学习/0.python学习.html">
            
                <a href="../python面对过程学习/0.python学习.html">
            
                    
                    0.python学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../python面对过程学习/1.python简介.html">
            
                <a href="../python面对过程学习/1.python简介.html">
            
                    
                    1.python简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="../python面对过程学习/2.python程序no.1.html">
            
                <a href="../python面对过程学习/2.python程序no.1.html">
            
                    
                    2.python程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="../python面对过程学习/3.多文件项目的演练.html">
            
                <a href="../python面对过程学习/3.多文件项目的演练.html">
            
                    
                    3.多文件项目的演练
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="../python面对过程学习/4.程序注释.html">
            
                <a href="../python面对过程学习/4.程序注释.html">
            
                    
                    4.程序注释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="../python面对过程学习/5.算数运算符.html">
            
                <a href="../python面对过程学习/5.算数运算符.html">
            
                    
                    5.算数运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="../python面对过程学习/6.程序执行原理（科普）.html">
            
                <a href="../python面对过程学习/6.程序执行原理（科普）.html">
            
                    
                    6.程序执行原理（科普）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="../python面对过程学习/7.变量的基本使用.html">
            
                <a href="../python面对过程学习/7.变量的基本使用.html">
            
                    
                    7.变量的基本使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="../python面对过程学习/8.变量的命名.html">
            
                <a href="../python面对过程学习/8.变量的命名.html">
            
                    
                    8.变量的命名
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.10" data-path="../python面对过程学习/9.判断（if）语句.html">
            
                <a href="../python面对过程学习/9.判断（if）语句.html">
            
                    
                    9.判断（if）语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.11" data-path="../python面对过程学习/10.运算符.html">
            
                <a href="../python面对过程学习/10.运算符.html">
            
                    
                    10.运算符.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.12" data-path="../python面对过程学习/11.循环.html">
            
                <a href="../python面对过程学习/11.循环.html">
            
                    
                    11.循环.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.13" data-path="../python面对过程学习/12.函数基础.html">
            
                <a href="../python面对过程学习/12.函数基础.html">
            
                    
                    12.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.14" data-path="../python面对过程学习/13.高级变量类型.html">
            
                <a href="../python面对过程学习/13.高级变量类型.html">
            
                    
                    13.函数基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.15" data-path="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                <a href="../python面对过程学习/14.综合应用 —— 名片管理系统.html">
            
                    
                    14.综合应用 —— 名片管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.16" data-path="../python面对过程学习/15.变量进阶（理解）.html">
            
                <a href="../python面对过程学习/15.变量进阶（理解）.html">
            
                    
                    15.变量进阶（理解）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.17" data-path="../python面对过程学习/16.函数进阶.html">
            
                <a href="../python面对过程学习/16.函数进阶.html">
            
                    
                    16.函数进阶
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">面对对象</li>
        
        
    
        <li class="chapter " data-level="8.1" data-path="../课余/编程exe.html">
            
                <a href="../课余/编程exe.html">
            
                    
                    编程exe
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">问题</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="../问题/安装软件.html">
            
                <a href="../问题/安装软件.html">
            
                    
                    安装软件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="../问题/激活码网站.html">
            
                <a href="../问题/激活码网站.html">
            
                    
                    激活码网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="../问题/虚拟机.html">
            
                <a href="../问题/虚拟机.html">
            
                    
                    虚拟机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.4" data-path="../问题/疑难杂症.html">
            
                <a href="../问题/疑难杂症.html">
            
                    
                    疑难杂症
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >gitee远程仓库搭建</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x5E38;&#x7528;&#x547D;&#x4EE4;">&#x5E38;&#x7528;&#x547D;&#x4EE4;</h1>
<p>Git &#x5168;&#x5C40;&#x8BBE;&#x7F6E;:</p>
<pre><code>git config --global user.name &quot;&#x8C8D;&#x5115;&#x5914;&quot;
git config --global user.email &quot;2086368526@qq.com&quot;
</code></pre><p>&#x7B80;&#x5355;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>mkdir gitbook
cd gitbook
git init
touch README.md
git add README.md
git commit -m &quot;first commit&quot;
git remote add origin git@gitee.com:lichaikui/gitbook.git
git push -u origin master
</code></pre><h1 id="git-gitee">Git Gitee</h1>
<p>&#x7531;&#x4E8E;&#x6211;&#x4EEC;&#x7684;&#x672C;&#x5730; Git &#x4ED3;&#x5E93;&#x548C; Gitee &#x4ED3;&#x5E93;&#x4E4B;&#x95F4;&#x7684;&#x4F20;&#x8F93;&#x662F;&#x901A;&#x8FC7;SSH&#x52A0;&#x5BC6;&#x7684;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x9A8C;&#x8BC1;&#x4FE1;&#x606F;&#x3002;</p>
<p><strong>1&#x3001;&#x6211;&#x4EEC;&#x5148;&#x5728; <a href="https://gitee.com/?utm_source=remote_blog_cnjc" target="_blank">Gitee</a> &#x4E0A;&#x6CE8;&#x518C;&#x8D26;&#x53F7;&#x5E76;&#x767B;&#x5F55;&#x540E;&#xFF0C;&#x7136;&#x540E;&#x4E0A;&#x4F20;&#x81EA;&#x5DF1;&#x7684; SSH &#x516C;&#x94A5;&#x3002;</strong></p>
<p>&#x6211;&#x4EEC;&#x5728; Git Github &#x7AE0;&#x8282;&#x5DF2;&#x7ECF;&#x751F;&#x6210;&#x4E86;&#x81EA;&#x5DF1;&#x7684; SSH &#x516C;&#x94A5;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x5C06;&#x7528;&#x6237;&#x4E3B;&#x76EE;&#x5F55;&#x4E0B;&#x7684; ~/.ssh/id_rsa.pub &#x6587;&#x4EF6;&#x7684;&#x5185;&#x5BB9;&#x7C98;&#x8D34; Gitee &#x4E0A;&#x3002;</p>
<p>&#x9009;&#x62E9;&#x53F3;&#x4E0A;&#x89D2;&#x7528;&#x6237;&#x5934;&#x50CF; -&gt; &#x8BBE;&#x7F6E;&#xFF0C;&#x7136;&#x540E;&#x9009;&#x62E9; &quot;SSH&#x516C;&#x94A5;&quot;&#xFF0C;&#x586B;&#x5199;&#x4E00;&#x4E2A;&#x4FBF;&#x4E8E;&#x8BC6;&#x522B;&#x7684;&#x6807;&#x9898;&#xFF0C;&#x7136;&#x540E;&#x628A;&#x7528;&#x6237;&#x4E3B;&#x76EE;&#x5F55;&#x4E0B;&#x7684; .ssh/id_rsa.pub &#x6587;&#x4EF6;&#x7684;&#x5185;&#x5BB9;&#x7C98;&#x8D34;&#x8FDB;&#x53BB;&#xFF1A;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee1.png" alt="img"></p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee2.png" alt="img"></p>
<p>&#x6210;&#x529F;&#x6DFB;&#x52A0;&#x540E;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;&#xFF1A;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee3.png" alt="img"></p>
<p>&#x63A5;&#x4E0B;&#x6765;&#x6211;&#x4EEC;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x9879;&#x76EE;&#x3002;</p>
<p>&#x70B9;&#x51FB;&#x53F3;&#x4E0A;&#x89D2;&#x7684; <strong>+</strong> &#x53F7;&#xFF0C;&#x65B0;&#x5EFA;&#x4ED3;&#x5E93;&#xFF1A;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee4.png" alt="img"></p>
<p>&#x7136;&#x540E;&#x6DFB;&#x52A0;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;&#xFF1A;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee5.png" alt="img"></p>
<p>&#x521B;&#x5EFA;&#x6210;&#x529F;&#x540E;&#x770B;&#x5230;&#x5982;&#x4E0B;&#x4FE1;&#x606F;&#xFF1A;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee6.png" alt="img"></p>
<p>&#x63A5;&#x4E0B;&#x6765;&#x6211;&#x4EEC;&#x770B;&#x4E0B;&#x8FDE;&#x63A5;&#x4FE1;&#x606F;&#xFF1A;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee7.png" alt="img"></p>
<p>&#x9879;&#x76EE;&#x540D;&#x79F0;&#x6700;&#x597D;&#x4E0E;&#x672C;&#x5730;&#x5E93;&#x4FDD;&#x6301;&#x4E00;&#x81F4;&#x3002;</p>
<p>&#x7136;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x5728;&#x672C;&#x5730;&#x5E93;&#x4E0A;&#x4F7F;&#x7528;&#x547D;&#x4EE4; <strong>git remote add</strong> &#x628A;&#x5B83;&#x548C; Gitee &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#x5173;&#x8054;&#xFF1A;</p>
<pre><code>git remote add origin git@gitee.com:imnoob/runoob-test.git
</code></pre><p>&#x4E4B;&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x6B63;&#x5E38;&#x5730;&#x7528; git push &#x548C; git pull &#x63A8;&#x9001;&#x4E86;&#xFF01;</p>
<p>&#x5982;&#x679C;&#x5728;&#x4F7F;&#x7528;&#x547D;&#x4EE4; git remote add &#x65F6;&#x62A5;&#x9519;&#xFF1A;</p>
<pre><code>git remote add origin git@gitee.com:imnoob/runoob-test.git
fatal: remote origin already exists.
</code></pre><p>&#x8FD9;&#x8BF4;&#x660E;&#x672C;&#x5730;&#x5E93;&#x5DF2;&#x7ECF;&#x5173;&#x8054;&#x4E86;&#x4E00;&#x4E2A;&#x540D;&#x53EB; origin &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#xFF0C;&#x6B64;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x5148;&#x7528; <strong>git remote -v</strong> &#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x5E93;&#x4FE1;&#x606F;&#xFF1A;</p>
<pre><code>git remote -v
origin    git@github.com:tianqixin/runoob.git (fetch)
origin    git@github.com:tianqixin/runoob.git (push)
</code></pre><p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;&#x672C;&#x5730;&#x5E93;&#x5DF2;&#x7ECF;&#x5173;&#x8054;&#x4E86; origin &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#xFF0C;&#x5E76;&#x4E14;&#xFF0C;&#x8BE5;&#x8FDC;&#x7A0B;&#x5E93;&#x6307;&#x5411; GitHub&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5220;&#x9664;&#x5DF2;&#x6709;&#x7684; GitHub &#x8FDC;&#x7A0B;&#x5E93;&#xFF1A;</p>
<pre><code>git remote rm origin
</code></pre><p>&#x518D;&#x5173;&#x8054; Gitee &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#xFF08;&#x6CE8;&#x610F;&#x8DEF;&#x5F84;&#x4E2D;&#x9700;&#x8981;&#x586B;&#x5199;&#x6B63;&#x786E;&#x7684;&#x7528;&#x6237;&#x540D;&#xFF09;&#xFF1A;</p>
<pre><code>git remote add origin git@gitee.com:imnoob/runoob-test.git
</code></pre><p>&#x6B64;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x518D;&#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x5E93;&#x4FE1;&#x606F;&#xFF1A;</p>
<pre><code>git remote -v
origin    git@gitee.com:imnoob/runoob-test.git (fetch)
origin    git@gitee.com:imnoob/runoob-test.git (push)
</code></pre><p>&#x73B0;&#x5728;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;origin &#x5DF2;&#x7ECF;&#x88AB;&#x5173;&#x8054;&#x5230; Gitee &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#x4E86;&#x3002;</p>
<p>&#x901A;&#x8FC7; git push &#x547D;&#x4EE4;&#x5C31;&#x53EF;&#x4EE5;&#x628A;&#x672C;&#x5730;&#x5E93;&#x63A8;&#x9001;&#x5230; Gitee &#x4E0A;&#x3002;</p>
<p>&#x6709;&#x7684;&#x5C0F;&#x4F19;&#x4F34;&#x53C8;&#x8981;&#x95EE;&#x4E86;&#xFF0C;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x5E93;&#x80FD;&#x4E0D;&#x80FD;&#x65E2;&#x5173;&#x8054; GitHub&#xFF0C;&#x53C8;&#x5173;&#x8054; Gitee &#x5462;&#xFF1F;</p>
<p>&#x7B54;&#x6848;&#x662F;&#x80AF;&#x5B9A;&#x7684;&#xFF0C;&#x56E0;&#x4E3A; git &#x672C;&#x8EAB;&#x662F;&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;&#xFF0C;&#x53EF;&#x4EE5;&#x540C;&#x6B65;&#x5230;&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x8FDC;&#x7A0B;&#x5E93;&#xFF0C;&#x5F53;&#x7136;&#x4E5F;&#x53EF;&#x4EE5;&#x540C;&#x6B65;&#x5230;&#x53E6;&#x5916;&#x4E24;&#x4E2A;&#x8FDC;&#x7A0B;&#x5E93;&#x3002;</p>
<p>&#x4F7F;&#x7528;&#x591A;&#x4E2A;&#x8FDC;&#x7A0B;&#x5E93;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x8981;&#x6CE8;&#x610F;&#xFF0C;git &#x7ED9;&#x8FDC;&#x7A0B;&#x5E93;&#x8D77;&#x7684;&#x9ED8;&#x8BA4;&#x540D;&#x79F0;&#x662F; origin&#xFF0C;&#x5982;&#x679C;&#x6709;&#x591A;&#x4E2A;&#x8FDC;&#x7A0B;&#x5E93;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x540D;&#x79F0;&#x6765;&#x6807;&#x8BC6;&#x4E0D;&#x540C;&#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#x3002;</p>
<p>&#x4ECD;&#x7136;&#x4EE5; runoob-test &#x672C;&#x5730;&#x5E93;&#x4E3A;&#x4F8B;&#xFF0C;&#x6211;&#x4EEC;&#x5148;&#x5220;&#x9664;&#x5DF2;&#x5173;&#x8054;&#x7684;&#x540D;&#x4E3A; origin &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#xFF1A;</p>
<pre><code>git remote rm origin
</code></pre><p>&#x7136;&#x540E;&#xFF0C;&#x5148;&#x5173;&#x8054; GitHub &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#xFF1A;</p>
<pre><code>git remote add github git@github.com:tianqixin/runoob-git-test.git
</code></pre><p>&#x6CE8;&#x610F;&#xFF0C;&#x8FDC;&#x7A0B;&#x5E93;&#x7684;&#x540D;&#x79F0;&#x53EB; github&#xFF0C;&#x4E0D;&#x53EB; origin &#x4E86;&#x3002;</p>
<p>&#x63A5;&#x7740;&#xFF0C;&#x518D;&#x5173;&#x8054; Gitee &#x7684;&#x8FDC;&#x7A0B;&#x5E93;&#xFF1A;</p>
<pre><code>git remote add gitee git@gitee.com:imnoob/runoob-test.git
</code></pre><p>&#x540C;&#x6837;&#x6CE8;&#x610F;&#xFF0C;&#x8FDC;&#x7A0B;&#x5E93;&#x7684;&#x540D;&#x79F0;&#x53EB; gitee&#xFF0C;&#x4E0D;&#x53EB; origin&#x3002;</p>
<p>&#x73B0;&#x5728;&#xFF0C;&#x6211;&#x4EEC;&#x7528; git remote -v &#x67E5;&#x770B;&#x8FDC;&#x7A0B;&#x5E93;&#x4FE1;&#x606F;&#xFF0C;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x4E24;&#x4E2A;&#x8FDC;&#x7A0B;&#x5E93;&#xFF1A;</p>
<pre><code>git remote -v
gitee    git@gitee.com:imnoob/runoob-test.git (fetch)
gitee    git@gitee.com:imnoob/runoob-test.git (push)
github    git@github.com:tianqixin/runoob.git (fetch)
github    git@github.com:tianqixin/runoob.git (push)
</code></pre><p>&#x5982;&#x679C;&#x8981;&#x63A8;&#x9001;&#x5230; GitHub&#xFF0C;&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>git push github master
</code></pre><p>&#x5982;&#x679C;&#x8981;&#x63A8;&#x9001;&#x5230; Gitee&#xFF0C;&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>git push gitee master
</code></pre><p>&#x8FD9;&#x6837;&#x4E00;&#x6765;&#xFF0C;&#x6211;&#x4EEC;&#x7684;&#x672C;&#x5730;&#x5E93;&#x5C31;&#x53EF;&#x4EE5;&#x540C;&#x65F6;&#x4E0E;&#x591A;&#x4E2A;&#x8FDC;&#x7A0B;&#x5E93;&#x4E92;&#x76F8;&#x540C;&#x6B65;&#xFF1A;</p>
<p><img src="https://gitee.com/lichaikui/picture/raw/master/tupian/gitee8.png" alt="img"></p>
<p>&#x5982;&#x679C;&#xFF1A;</p>
<pre><code>git push [gitee] master
</code></pre><blockquote>
<p>&#x5728;gitee&#x4E0A;&#x4FEE;&#x6539;&#x8FC7;README.md&#x540E;&#xFF0C;&#x5728;&#x672C;&#x5730;&#x6267;&#x884C;git push gitee master&#x540E;&#x4F1A;&#x63D0;&#x793A;&#xFF1A;</p>
<pre><code>$ git push gitee master
To gitee.com:taozhuowei/StoreMyToys.git
! [rejected]        master -&gt; master (fetch first)
error: failed to push some refs to &apos;git@github.com:taozhuowei/StoreMyToys.git&apos;
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., &apos;git pull ...&apos;) before pushing again.
hint: See the &apos;Note about fast-forwards&apos; in &apos;git push --help&apos; for details.
</code></pre><p>&#x5C06;gitee&#x4FEE;&#x6539;&#x7684;&#x6587;&#x4EF6;&#x66F4;&#x65B0;&#x5230;&#x672C;&#x5730;</p>
<pre><code>git pull --rebase gitee master
</code></pre></blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../阶段二笔记/github使用.html" class="navigation navigation-prev " aria-label="Previous page: github使用">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="客户端与服务端的搭建.html" class="navigation navigation-next " aria-label="Next page: 客户端与服务端的搭建">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"gitee远程仓库搭建","level":"4.4","depth":1,"next":{"title":"客户端与服务端的搭建","level":"4.5","depth":1,"path":"搭建/客户端与服务端的搭建.md","ref":"./搭建/客户端与服务端的搭建.md","articles":[]},"previous":{"title":"github使用","level":"4.3","depth":1,"path":"阶段二笔记/github使用.md","ref":"./阶段二笔记/github使用.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"搭建/gitee远程仓库搭建.md","mtime":"2022-01-13T09:58:10.861Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-24T13:44:59.630Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

